
 <!DOCTYPE HTML>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  
    <title>Jark&#39;s Blog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    
    <meta name="author" content="WuChong">
    
    <meta name="description" content="伍翀的个人技术博客">
    
    
    <meta name="description" content="伍翀的个人技术博客">
<meta property="og:type" content="website">
<meta property="og:title" content="Jark's Blog">
<meta property="og:url" content="http://wuchong.me/page/3/">
<meta property="og:site_name" content="Jark's Blog">
<meta property="og:description" content="伍翀的个人技术博客">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Jark's Blog">
<meta name="twitter:description" content="伍翀的个人技术博客">
<meta name="twitter:creator" content="@jarkwu">
<link rel="publisher" href="111190881341800841449">

    
    <link rel="alternative" href="/atom.xml" title="Jark&#39;s Blog" type="application/atom+xml">
    
    
    <link rel="icon" href="/img/favicon.ico">
    
    
    <link rel="apple-touch-icon" href="/img/jacman.jpg">
    <link rel="apple-touch-icon-precomposed" href="/img/jacman.jpg">
    
    <link rel="stylesheet" href="/css/style.css" type="text/css">
</head>

  <body>
    <header>
      <div>
		
			<div id="imglogo">
				<a href="/"><img src="/img/logo.png" alt="Jark&#39;s Blog" title="Jark&#39;s Blog"/></a>
			</div>
			
			<div id="textlogo">
				<h1 class="site-name"><a href="/" title="Jark&#39;s Blog">Jark&#39;s Blog</a></h1>
				<h2 class="blog-motto">当你的才华还撑不起你的野心时，你就应该静下心来学习。</h2>
			</div>
			<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
			</a></div>
			<nav class="animated">
				<ul>
					<ul>
					 
						<li><a href="/">首页</a></li>
					
						<li><a href="/archives">归档</a></li>
					
						<li><a href="/about">关于</a></li>
					
					<li>
 					
						<form class="search" action="http://zhannei.baidu.com/cse/search" target="_blank">
							<label>Search</label>
						<input name="s" type="hidden" value= 783281470518440642 ><input type="text" name="q" size="30" placeholder="搜索"><br>
						</form>
					
					</li>
				</ul>
			</nav>			
</div>
    </header>
    <div id="container">
      <div id="main">

   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2014/07/30/ali-bigdata-competition-write-to-the-5-monthes/" title="阿里推荐大赛：写给这五个月" itemprop="url">阿里推荐大赛：写给这五个月</a>
  </h1>
  <p class="article-author">By
       
		<a href="https://plus.google.com/111190881341800841449?rel=author" title="WuChong" target="_blank" itemprop="author">WuChong</a>
		
  <p class="article-time">
    <time datetime="2014-07-30T04:16:45.000Z" itemprop="datePublished"> 发表于 2014-07-30</time>
    
  </p>
</header>
    <div class="article-content">
        
        <p>今天早上出完成绩后，其实不怎么想写这篇文章的。因为五个月的努力，最终也没能证明自己。虽然已经不需要前 50 的「校招绿色通道」，但是心里还是会有一些失落。自己劝慰自己「毕竟是一个人单挑」，可是前 50 单挑的也不少。想想还是自己有很多的不足之处，在最终跑融合集的时候，两次脚本参数跑错导致浪费了宝贵的线上机会。而在删除集方面的尝试终于有些效果了，比赛却戛然而止了。</p>
<p>其实在早上看到最终成绩的时候，心情还是比较平静的，我貌似已经淡定地接受了这一切。静静地看着这五个月来的一幕幕如潮水般涌来。</p>
<p>第一次听说这个比赛是在 13 年下半年，一次偶然的机会看到 @得福 做的一次天猫推荐的分享，在那次分享的最后介绍了今年3月份会举办面向高校的推荐大赛。很期待阿里也要举办类似 Netflix 的比赛，而且这次是真正的大数据。</p>
<p>果然在3月初的时候，比赛如期而至，毫不犹豫地报名了。因此也展开了黑白颠倒的五个月。<br>
        
        
        <p class="article-more-link">
          
            <a href="/blog/2014/07/30/ali-bigdata-competition-write-to-the-5-monthes/#more">阅读更多</a>
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">

<div class="article-categories">
  <span></span>
  <a class="article-category-link" href="/categories/随笔生活/">随笔生活</a>
</div>


  <div class="article-tags">
  
  <span></span> <a href="/tags/阿里推荐大赛/">阿里推荐大赛</a><a href="/tags/生活/">生活</a>
  </div>

</div>




<div class="comments-count">
	
	  	<span></span>
		<a href="http://wuchong.me/blog/2014/07/30/ali-bigdata-competition-write-to-the-5-monthes/#comments" class="ds-thread-count comments-count-link" data-thread-key="blog/2014/07/30/ali-bigdata-competition-write-to-the-5-monthes/" data-count-type="comments">&nbsp;</a>
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2014/07/28/permutation-and-combination-realize/" title="全排列和全组合实现" itemprop="url">全排列和全组合实现</a>
  </h1>
  <p class="article-author">By
       
		<a href="https://plus.google.com/111190881341800841449?rel=author" title="WuChong" target="_blank" itemprop="author">WuChong</a>
		
  <p class="article-time">
    <time datetime="2014-07-28T01:41:18.000Z" itemprop="datePublished"> 发表于 2014-07-28</time>
    
  </p>
</header>
    <div class="article-content">
        
        <p>记得<a href="http://weibo.com/jeffz" target="_blank" rel="external">@老赵</a>之前在微博上吐槽说，“有的人真是毫无长进，六年前某同事不会写程序输出全排列，昨天发邮件还是问我该怎么写，这时间浪费到我都看不下去了。” 那时候就很好奇全排列到底是什么东西，到底有多难？</p>
<p>今天复习的时候终于碰到这题了，结果果然自己太渣，看了好久都没明白，代码实现又是磕磕碰碰的。所以，就把它整理成笔记加深记忆，也希望能帮到和我一样的人。</p>
<h2 id="全排列">全排列</h2>
<p>所谓全排列，就是打印出字符串中所有字符的所有排列。例如输入字符串<code>abc</code>，则打印出 a、b、c 所能排列出来的所有字符串 <code>abc</code>、<code>acb</code>、<code>bac</code>、<code>bca</code>、<code>cab</code> 和 <code>cba</code> 。</p>
<p>一般最先想到的方法是暴力循环法，即对于每一位，遍历集合中可能的元素，如果在这一位之前出现过了该元素，跳过该元素。例如对于<code>abc</code>，第一位可以是 a 或 b 或 c 。当第一位为 a 时，第二位再遍历集合，发现 a 不行，因为前面已经出现 a 了，而 b 和 c 可以。当第二位为 b 时 ， 再遍历集合，发现 a 和 b 都不行，c 可以。可以用递归或循环来实现，但是复杂度为 $O(n^n)$ 。有没有更优雅的解法呢。</p>
<p>首先考虑<code>bac</code>和<code>cba</code>这二个字符串是如何得出的。显然这二个都是<code>abc</code>中的 a 与后面两字符交换得到的。然后可以将<code>abc</code>的第二个字符和第三个字符交换得到<code>acb</code>。同理可以根据<code>bac</code>和<code>cba</code>来得<code>bca</code>和<code>cab</code>。</p>
<p>因此可以知道 <strong>全排列就是从第一个数字起每个数分别与它后面的数字交换</strong>，也可以得出这种解法每次得到的结果都是正确结果，所以复杂度为 O(n!)。找到这个规律后，递归的代码就很容易写出来了：<br>
        
        
        <p class="article-more-link">
          
            <a href="/blog/2014/07/28/permutation-and-combination-realize/#more">阅读更多</a>
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">

<div class="article-categories">
  <span></span>
  <a class="article-category-link" href="/categories/程序设计/">程序设计</a>
</div>


  <div class="article-tags">
  
  <span></span> <a href="/tags/全排列/">全排列</a><a href="/tags/全组合/">全组合</a><a href="/tags/面试/">面试</a>
  </div>

</div>




<div class="comments-count">
	
	  	<span></span>
		<a href="http://wuchong.me/blog/2014/07/28/permutation-and-combination-realize/#comments" class="ds-thread-count comments-count-link" data-thread-key="blog/2014/07/28/permutation-and-combination-realize/" data-count-type="comments">&nbsp;</a>
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2014/07/24/linux-process-manage/" title="Linux基础：进程管理" itemprop="url">Linux基础：进程管理</a>
  </h1>
  <p class="article-author">By
       
		<a href="https://plus.google.com/111190881341800841449?rel=author" title="WuChong" target="_blank" itemprop="author">WuChong</a>
		
  <p class="article-time">
    <time datetime="2014-07-24T03:48:11.000Z" itemprop="datePublished"> 发表于 2014-07-24</time>
    
  </p>
</header>
    <div class="article-content">
        
        <p>进程是操作系统上非常重要的概念，所有系统上面跑的数据都会以进程的类型存在。在 Linux 系统当中：触发任何一个事件时，系统都会将它定义成为一个进程，并且给予这个进程一个 ID，称为 PID，同时根据触发这个进程的用户，给予这个 PID 一组有效的权限设置。</p>
<h2 id="进程是什么样的">进程是什么样的</h2>
<p>程序运行起来后，我们看不到也摸不着。因此 Linux 为我们提供了一系列方便的命名来查看正在运行的进程。首先是 ps 命令，比如 <code>ps -l</code>命令能查看当前 bash 下的相关进程全部信息。如下：</p>
<figure class="highlight"><table><tr><td class="gutter"><pre>1
2
3
4
5
</pre></td><td class="code"><pre>$ ps -l
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          <span class="typename">TIME</span> CMD
<span class="number">0</span> S  <span class="number">1000</span>  <span class="number">2552</span>  <span class="number">2538</span>  <span class="number">0</span>  <span class="number">80</span>   <span class="number">0</span> -  <span class="number">1945</span> <span class="keyword">wait</span>   pts/<span class="number">0</span>    <span class="number">00</span>:<span class="number">00</span>:<span class="number">00</span> bash
<span class="number">0</span> S  <span class="number">1000</span>  <span class="number">9352</span>  <span class="number">2552</span>  <span class="number">0</span>  <span class="number">80</span>   <span class="number">0</span> -  <span class="number">1926</span> <span class="keyword">wait</span>   pts/<span class="number">0</span>    <span class="number">00</span>:<span class="number">00</span>:<span class="number">00</span> bash
<span class="number">0</span> R  <span class="number">1000</span>  <span class="number">9478</span>  <span class="number">9352</span>  <span class="number">0</span>  <span class="number">80</span>   <span class="number">0</span> -  <span class="number">1598</span> -      pts/<span class="number">0</span>    <span class="number">00</span>:<span class="number">00</span>:<span class="number">00</span> ps
</pre></td></tr></table></figure><br>
        
        
        <p class="article-more-link">
          
            <a href="/blog/2014/07/24/linux-process-manage/#more">阅读更多</a>
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">

<div class="article-categories">
  <span></span>
  <a class="article-category-link" href="/categories/LinuxUnix/">Linux/Unix</a>
</div>


  <div class="article-tags">
  
  <span></span> <a href="/tags/Linux基础/">Linux基础</a><a href="/tags/进程/">进程</a>
  </div>

</div>




<div class="comments-count">
	
	  	<span></span>
		<a href="http://wuchong.me/blog/2014/07/24/linux-process-manage/#comments" class="ds-thread-count comments-count-link" data-thread-key="blog/2014/07/24/linux-process-manage/" data-count-type="comments">&nbsp;</a>
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2014/07/21/linux-file-manage/" title="Linux基础：文件管理" itemprop="url">Linux基础：文件管理</a>
  </h1>
  <p class="article-author">By
       
		<a href="https://plus.google.com/111190881341800841449?rel=author" title="WuChong" target="_blank" itemprop="author">WuChong</a>
		
  <p class="article-time">
    <time datetime="2014-07-21T09:44:19.000Z" itemprop="datePublished"> 发表于 2014-07-21</time>
    
  </p>
</header>
    <div class="article-content">
        
        <p>在 Linux 下，所有的文件与目录都是由根目录（/）开始的。然后再一个一个分支下来，形成一棵繁杂的树。因此我们也称这种目录配置方式为“目录树”。那目录树与文件系统有什么关系，目录树是怎么实现的呢？</p>
<h2 id="目录">目录</h2>
<p>在 Linux 系统中，目录也是一种文件。我们可以使用 <code>$ls -li</code>来查看一个目录的属性。</p>
<figure class="highlight"><table><tr><td class="gutter"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre><span class="variable">$ls</span> <span class="attribute">-li</span>  /home/wuchong
<span class="number">141494</span>  drwxr<span class="attribute">-xr</span><span class="attribute">-x</span> <span class="number">18</span> wuchong wuchong    <span class="number">4096</span> <span class="number">12</span>月  <span class="number">2</span>  <span class="number">2013</span> hadoop<span class="subst">-</span><span class="number">1.1</span><span class="number">.1</span>
<span class="number">1715845</span> drwxrwxr<span class="attribute">-x</span>  <span class="number">2</span> wuchong wuchong    <span class="number">4096</span>  <span class="number">7</span>月 <span class="number">12</span> <span class="number">09</span>:<span class="number">07</span> input
<span class="number">1718481</span> <span class="attribute">-rw</span><span class="attribute">-rw</span><span class="attribute">-r</span><span class="subst">--</span>  <span class="number">1</span> wuchong wuchong       <span class="number">0</span>  <span class="number">7</span>月 <span class="number">12</span> <span class="number">16</span>:<span class="number">11</span> test<span class="built_in">.</span>txt
<span class="number">1718478</span> <span class="attribute">-rw</span><span class="attribute">-r</span><span class="subst">--</span>r<span class="subst">--</span>  <span class="number">1</span> root    root    <span class="number">1780292</span>  <span class="number">6</span>月 <span class="number">16</span> <span class="number">19</span>:<span class="number">04</span> etc<span class="built_in">.</span>jar<span class="built_in">.</span>bz2
……
</pre></td></tr></table></figure><br>
        
        
        <p class="article-more-link">
          
            <a href="/blog/2014/07/21/linux-file-manage/#more">阅读更多</a>
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">

<div class="article-categories">
  <span></span>
  <a class="article-category-link" href="/categories/LinuxUnix/">Linux/Unix</a>
</div>


  <div class="article-tags">
  
  <span></span> <a href="/tags/Linux基础/">Linux基础</a><a href="/tags/文件系统/">文件系统</a>
  </div>

</div>




<div class="comments-count">
	
	  	<span></span>
		<a href="http://wuchong.me/blog/2014/07/21/linux-file-manage/#comments" class="ds-thread-count comments-count-link" data-thread-key="blog/2014/07/21/linux-file-manage/" data-count-type="comments">&nbsp;</a>
	
</div>

</footer>


    </article>






   
    
    <article class="post-expand post" itemprop="articleBody"> 
        <header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/blog/2014/07/19/linux-file-system/" title="Linux基础：文件系统" itemprop="url">Linux基础：文件系统</a>
  </h1>
  <p class="article-author">By
       
		<a href="https://plus.google.com/111190881341800841449?rel=author" title="WuChong" target="_blank" itemprop="author">WuChong</a>
		
  <p class="article-time">
    <time datetime="2014-07-18T23:36:37.000Z" itemprop="datePublished"> 发表于 2014-07-19</time>
    
  </p>
</header>
    <div class="article-content">
        
        <p>我们知道不同的操作系统所使用的文件系统是不一样的。举例来说，Windows 98 以前所使用的是文件系统是 FAT，Windows 2000 以后的版本有所谓的 NTFS 文件系统。至于 Linux  的正规文件系统则为 Ext2（Linux second extended file system，Ext2fs）。之后又出现了改进版的 Ext3 和 Ext4 ，总体上变化不大。</p>
<h2 id="文件系统的对比">文件系统的对比</h2>
<p>我们经常听说 Windows 需要磁盘碎片整理，而 Linux 却不需要。这是为什么呢？</p>
<p>我们可以先看看 FAT 文件系统的数据访问方式，如下图所示。</p>
<p><img src="http://ww2.sinaimg.cn/mw690/81b78497jw1eic3rqwb6mj20qj0dzwfu.jpg" alt=""><br>
        
        
        <p class="article-more-link">
          
            <a href="/blog/2014/07/19/linux-file-system/#more">阅读更多</a>
          
       </p>
    </div>
    <footer class="article-footer clearfix">
<div class="article-catetags">

<div class="article-categories">
  <span></span>
  <a class="article-category-link" href="/categories/LinuxUnix/">Linux/Unix</a>
</div>


  <div class="article-tags">
  
  <span></span> <a href="/tags/Linux基础/">Linux基础</a><a href="/tags/文件系统/">文件系统</a>
  </div>

</div>




<div class="comments-count">
	
	  	<span></span>
		<a href="http://wuchong.me/blog/2014/07/19/linux-file-system/#comments" class="ds-thread-count comments-count-link" data-thread-key="blog/2014/07/19/linux-file-system/" data-count-type="comments">&nbsp;</a>
	
</div>

</footer>


    </article>







  <nav id="page-nav" class="clearfix">
    <a class="extend prev" rel="prev" href="/page/2/"><span></span>Prev</a><a class="page-number" href="/">1</a><a class="page-number" href="/page/2/">2</a><span class="page-number current">3</span><a class="page-number" href="/page/4/">4</a><a class="page-number" href="/page/5/">5</a><span class="space">&hellip;</span><a class="page-number" href="/page/8/">8</a><a class="extend next" rel="next" href="/page/4/">Next<span></span></a>
  </nav>

</div>
      <div class="openaside"><a class="navbutton" href="#" title="显示侧边栏"></a></div>

<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隐藏侧边栏"></a></div>
<aside class="clearfix">

  
<div class="categorieslist">
	<p class="asidetitle">分类</p>
		<ul>
		
			<li><a href="/categories/Hexo/" title="Hexo">Hexo<sup>7</sup></a></li>
		
			<li><a href="/categories/LinuxUnix/" title="Linux/Unix">Linux/Unix<sup>6</sup></a></li>
		
			<li><a href="/categories/Python/" title="Python">Python<sup>3</sup></a></li>
		
			<li><a href="/categories/推荐系统/" title="推荐系统">推荐系统<sup>3</sup></a></li>
		
			<li><a href="/categories/杂项资源/" title="杂项资源">杂项资源<sup>2</sup></a></li>
		
			<li><a href="/categories/程序设计/" title="程序设计">程序设计<sup>5</sup></a></li>
		
			<li><a href="/categories/系统架构/" title="系统架构">系统架构<sup>1</sup></a></li>
		
			<li><a href="/categories/编程语言/" title="编程语言">编程语言<sup>2</sup></a></li>
		
			<li><a href="/categories/职场生涯/" title="职场生涯">职场生涯<sup>2</sup></a></li>
		
			<li><a href="/categories/随笔生活/" title="随笔生活">随笔生活<sup>5</sup></a></li>
		
		</ul>
</div>


  
<div class="tagslist">
	<p class="asidetitle">标签</p>
		<ul class="clearfix">
		
			<li><a href="/tags/Hexo/" title="Hexo">Hexo<sup>8</sup></a></li>
		
			<li><a href="/tags/面试/" title="面试">面试<sup>5</sup></a></li>
		
			<li><a href="/tags/Linux基础/" title="Linux基础">Linux基础<sup>5</sup></a></li>
		
			<li><a href="/tags/生活/" title="生活">生活<sup>4</sup></a></li>
		
			<li><a href="/tags/博客/" title="博客">博客<sup>4</sup></a></li>
		
			<li><a href="/tags/Python/" title="Python">Python<sup>4</sup></a></li>
		
			<li><a href="/tags/阿里推荐大赛/" title="阿里推荐大赛">阿里推荐大赛<sup>4</sup></a></li>
		
			<li><a href="/tags/算法/" title="算法">算法<sup>2</sup></a></li>
		
			<li><a href="/tags/爬虫/" title="爬虫">爬虫<sup>2</sup></a></li>
		
			<li><a href="/tags/ODPS/" title="ODPS">ODPS<sup>2</sup></a></li>
		
			<li><a href="/tags/教程/" title="教程">教程<sup>2</sup></a></li>
		
			<li><a href="/tags/Jacman/" title="Jacman">Jacman<sup>2</sup></a></li>
		
			<li><a href="/tags/Java/" title="Java">Java<sup>2</sup></a></li>
		
			<li><a href="/tags/文件系统/" title="文件系统">文件系统<sup>2</sup></a></li>
		
			<li><a href="/tags/启动流程/" title="启动流程">启动流程<sup>1</sup></a></li>
		
			<li><a href="/tags/权限/" title="权限">权限<sup>1</sup></a></li>
		
			<li><a href="/tags/正则表达式/" title="正则表达式">正则表达式<sup>1</sup></a></li>
		
			<li><a href="/tags/jQuery/" title="jQuery">jQuery<sup>1</sup></a></li>
		
			<li><a href="/tags/双检锁/" title="双检锁">双检锁<sup>1</sup></a></li>
		
			<li><a href="/tags/设计模式/" title="设计模式">设计模式<sup>1</sup></a></li>
		
		</ul>
</div>


  <div class="linkslist">
  <p class="asidetitle">友情链接</p>
    <ul>
        
          <li>
            <a href="https://coderq.com" target="_blank" title="码农圈">码农圈</a>
          </li>
        
          <li>
            <a href="http://zipperary.com/" target="_blank" title="Zippera&#39;s Blog">Zippera&#39;s Blog</a>
          </li>
        
          <li>
            <a href="http://hijiangtao.github.io/" target="_blank" title="Data.Blog">Data.Blog</a>
          </li>
        
    </ul>
</div>

  <div class="weiboshow">
  <p class="asidetitle">新浪微博</p>
    <iframe width="100%" height="119" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=119&fansRow=2&ptype=1&speed=0&skin=9&isTitle=1&noborder=1&isWeibo=0&isFans=0&uid=2176287895&verifier=b3593ceb&dpc=1"></iframe>
</div>


  <div class="rsspart">
	<a href="/atom.xml" target="_blank" title="rss">RSS 订阅</a>
</div>

</aside>
</div>
    </div>
    <footer><div id="footer" >
	
	<div class="line">
		<span></span>
		<div class="author"></div>
	</div>
	
	
	<section class="info">
		<p> Hello,I&#39;m WuChong. For now I&#39;m a graduate student in Beijing. <br/>
			I&#39;ll share my learning experience with you at this blog.</p>
	</section>
	 
	<div class="social-font" class="clearfix">
		
		<a href="http://weibo.com/wuchong1014" target="_blank" class="icon-weibo" title="微博"></a>
		
		
		<a href="https://github.com/wuchong" target="_blank" class="icon-github" title="github"></a>
		
		
		
		<a href="https://twitter.com/jarkwu" target="_blank" class="icon-twitter" title="twitter"></a>
		
		
		
		
		
		
		<a href="https://plus.google.com/111190881341800841449?rel=author" target="_blank" class="icon-google_plus" title="Google+"></a>
		
		
	</div>
		<p class="copyright">Powered by <a href="http://zespia.tw/hexo/" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Pacman">Jacman</a> © 2014 
		
		<a href="http://wuchong.me/about" target="_blank" title="WuChong">WuChong</a>
		
		</p>
</div>
</footer>
    <script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/jquery.imagesloaded.min.js"></script>
<script src="/js/gallery.js"></script>

<script type="text/javascript">
$(document).ready(function(){ 
  $('.navbar').click(function(){
    $('header nav').toggleClass('shownav');
  });
  var myWidth = 0;
  function getSize(){
    if( typeof( window.innerWidth ) == 'number' ) {
      myWidth = window.innerWidth;
    } else if( document.documentElement && document.documentElement.clientWidth) {
      myWidth = document.documentElement.clientWidth;
    };
  };
  var m = $('#main'),
      a = $('#asidepart'),
      c = $('.closeaside'),
      o = $('.openaside');
  $(window).resize(function(){
    getSize(); 
    if (myWidth >= 1024) {
      $('header nav').removeClass('shownav');
    }else
    {
      m.removeClass('moveMain');
      a.css('display', 'block').removeClass('fadeOut');
      o.css('display', 'none');
        
    }
  });
  c.click(function(){
    a.addClass('fadeOut').css('display', 'none');
    o.css('display', 'block').addClass('fadeIn');
    m.addClass('moveMain');
  });
  o.click(function(){
    o.css('display', 'none').removeClass('beforeFadeIn');
    a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');      
    m.removeClass('moveMain');
  });
  $(window).scroll(function(){
    o.css("top",Math.max(80,260-$(this).scrollTop()));
  });
});
</script>




<script type="text/javascript">
  var duoshuoQuery = {short_name:"wuchong"};
  (function() {
    var ds = document.createElement('script');
    ds.type = 'text/javascript';ds.async = true;
    ds.src = '//static.duoshuo.com/embed.js';
    ds.charset = 'UTF-8';
    (document.getElementsByTagName('head')[0] 
    || document.getElementsByTagName('body')[0]).appendChild(ds);
  })();
</script> 









<!-- Analytics Begin -->

<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46321946-2', 'wuchong.me');  
ga('send', 'pageview');
</script>





<!-- Analytics End -->

<!-- Totop Begin -->

	<div id="totop">
	<a title="返回顶部"><img src="/img/scrollup.png"/></a>
	</div>
	<script src="/js/totop.js"></script>

<!-- Totop End -->

<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->


<!-- MathJax End -->

  </body>
 </html>
